package qsc.designpattern.builder;

/**
 * @auther QiuShangcheng
 * @create 2021/4/28
 */
public class Client {
    public static void main(String[] args) {
        IBuilder manBuilder = new ManBuilder();
        IBuilder womenBuilder = new WomenBuilder();
        Human man = Director.createHumanByDirector(manBuilder);
        Human women = Director.createHumanByDirector(womenBuilder);
        System.out.println(man.toString());
        System.out.println(women.toString());
    }
}
